package com.swyc.osschat.Test.designMode.status.base;

import com.swyc.osschat.Test.designMode.status.impl.LowState;

/**
 * @description 环境角色
 * @Author: z156940l@outlook.com
 * @className Context
 * @Date: 2022/7/21 16:45
 */
public class Context {
    private State state;

    public Context() {
        state = new LowState(this);
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public void setScore(int score){
        state.checkState(score);
    }
}
